/* $Id: ProcessDAO.java 
 * Copyright (C) 2011, TRAKHEES
 *  
 * Revision History
 *
 * Date  			Author 		    	Remarks
 * ---------------------------------------------------------------------------------
 *
 */
package ae.pcfc.etks.online.common.dao;

import java.util.List;

import ae.pcfc.etks.online.common.domain.AppMetaData;
import ae.pcfc.etks.online.common.domain.Process;
import ae.pcfc.etks.online.common.domain.ProcessStep;

public interface ProcessDAO {
	/**
	 * add
	 * Method to add a Process step domain object
	 * @param processStep
	 * @return
	 * boolean
	 */
	public boolean add(ProcessStep processStep);
	
	/**
	 * getAppMetaDataByApplicationId
	 * Method to find the application request by application id
	 * @param applicationId
	 * @return
	 * AppMetaData
	 */
	public AppMetaData getAppMetaDataByApplicationId(Long applicationId);
	
	/**
	 * getProcessByProcessAndStepCode
	 * Method to find the process domain object by process code and process step code
	 * @param processCode
	 * @param processStepCode
	 * @return
	 * ae.pcfc.etks.online.common.domain.Process
	 */
	public ae.pcfc.etks.online.common.domain.Process getProcessByProcessAndStepCode(String processCode, String processStepCode);
	
	/**
	 * getProcessByProcessCode
	 * Method to find teh process domain object by process code
	 * @param processCode
	 * @return
	 * ae.pcfc.etks.online.common.domain.Process
	 */
	public ae.pcfc.etks.online.common.domain.Process getProcessByProcessCode(String processCode);

	public List<Process> getAllProcesses();	
}
